package com.nbsaas.boot.queue.task.example;

import com.nbsaas.boot.queue.task.AbstractTask;

import java.time.LocalDateTime;

public class PrintTask extends AbstractTask {
    private final String message;

    public PrintTask(String message, LocalDateTime executeTime) {
        super(executeTime, 1, 3, 5000, new String[0]);
        this.message = message;
    }

    @Override
    public void execute() {
        System.out.println("[" + LocalDateTime.now() + "] " + message);
    }
} 